Integrand size = 23, antiderivative size = 58 \[ \int \frac {a+b \tan (e+f x)}{\sqrt {d \sec (e+f x)}} \, dx=-\frac {2 b}{f \sqrt {d \sec (e+f x)}}+\frac {2 a E\left (\left .\frac {1}{2} (e+f x)\right |2\right )}{f \sqrt {\cos (e+f x)} \sqrt {d \sec (e+f x)}} \]
[Out]
Time = 0.06 (sec) , antiderivative size = 58, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.130, Rules used = {3567, 3856, 2719} \[ \int \frac {a+b \tan (e+f x)}{\sqrt {d \sec (e+f x)}} \, dx=\frac {2 a E\left (\left .\frac {1}{2} (e+f x)\right |2\right )}{f \sqrt {\cos (e+f x)} \sqrt {d \sec (e+f x)}}-\frac {2 b}{f \sqrt {d \sec (e+f x)}} \]
[In]
[Out]
Rule 2719
Rule 3567
Rule 3856
Rubi steps \begin{align*} \text {integral}& = -\frac {2 b}{f \sqrt {d \sec (e+f x)}}+a \int \frac {1}{\sqrt {d \sec (e+f x)}} \, dx \\ & = -\frac {2 b}{f \sqrt {d \sec (e+f x)}}+\frac {a \int \sqrt {\cos (e+f x)} \, dx}{\sqrt {\cos (e+f x)} \sqrt {d \sec (e+f x)}} \\ & = -\frac {2 b}{f \sqrt {d \sec (e+f x)}}+\frac {2 a E\left (\left .\frac {1}{2} (e+f x)\right |2\right )}{f \sqrt {\cos (e+f x)} \sqrt {d \sec (e+f x)}} \\ \end{align*}
Time = 0.81 (sec) , antiderivative size = 54, normalized size of antiderivative = 0.93 \[ \int \frac {a+b \tan (e+f x)}{\sqrt {d \sec (e+f x)}} \, dx=\frac {-2 b \sqrt {\cos (e+f x)}+2 a E\left (\left .\frac {1}{2} (e+f x)\right |2\right )}{f \sqrt {\cos (e+f x)} \sqrt {d \sec (e+f x)}} \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 10.44 (sec) , antiderivative size = 306, normalized size of antiderivative = 5.28
method | result | size |
risch | \(-\frac {i \left (-i b +a \right ) \sqrt {2}}{f \sqrt {\frac {d \,{\mathrm e}^{i \left (f x +e \right )}}{{\mathrm e}^{2 i \left (f x +e \right )}+1}}}-\frac {i a \left (-\frac {2 \left ({\mathrm e}^{2 i \left (f x +e \right )} d +d \right )}{d \sqrt {{\mathrm e}^{i \left (f x +e \right )} \left ({\mathrm e}^{2 i \left (f x +e \right )} d +d \right )}}+\frac {i \sqrt {-i \left ({\mathrm e}^{i \left (f x +e \right )}+i\right )}\, \sqrt {2}\, \sqrt {i \left ({\mathrm e}^{i \left (f x +e \right )}-i\right )}\, \sqrt {i {\mathrm e}^{i \left (f x +e \right )}}\, \left (-2 i E\left (\sqrt {-i \left ({\mathrm e}^{i \left (f x +e \right )}+i\right )}, \frac {\sqrt {2}}{2}\right )+i F\left (\sqrt {-i \left ({\mathrm e}^{i \left (f x +e \right )}+i\right )}, \frac {\sqrt {2}}{2}\right )\right )}{\sqrt {d \,{\mathrm e}^{3 i \left (f x +e \right )}+d \,{\mathrm e}^{i \left (f x +e \right )}}}\right ) \sqrt {2}\, \sqrt {d \,{\mathrm e}^{i \left (f x +e \right )} \left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )}}{f \sqrt {\frac {d \,{\mathrm e}^{i \left (f x +e \right )}}{{\mathrm e}^{2 i \left (f x +e \right )}+1}}\, \left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )}\) | \(306\) |
parts | \(\frac {2 a \left (i \cos \left (f x +e \right ) E\left (i \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )\right ), i\right ) \sqrt {\frac {1}{\cos \left (f x +e \right )+1}}\, \sqrt {\frac {\cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}-i \cos \left (f x +e \right ) F\left (i \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )\right ), i\right ) \sqrt {\frac {1}{\cos \left (f x +e \right )+1}}\, \sqrt {\frac {\cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}+2 i \sqrt {\frac {1}{\cos \left (f x +e \right )+1}}\, E\left (i \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )\right ), i\right ) \sqrt {\frac {\cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}-2 i \sqrt {\frac {\cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, F\left (i \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )\right ), i\right ) \sqrt {\frac {1}{\cos \left (f x +e \right )+1}}+i \sec \left (f x +e \right ) \sqrt {\frac {1}{\cos \left (f x +e \right )+1}}\, \sqrt {\frac {\cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, E\left (i \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )\right ), i\right )-i \sec \left (f x +e \right ) \sqrt {\frac {\cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, F\left (i \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )\right ), i\right ) \sqrt {\frac {1}{\cos \left (f x +e \right )+1}}+\sin \left (f x +e \right )\right )}{f \left (\cos \left (f x +e \right )+1\right ) \sqrt {d \sec \left (f x +e \right )}}-\frac {2 b}{f \sqrt {d \sec \left (f x +e \right )}}\) | \(405\) |
default | \(\text {Expression too large to display}\) | \(779\) |
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.09 (sec) , antiderivative size = 89, normalized size of antiderivative = 1.53 \[ \int \frac {a+b \tan (e+f x)}{\sqrt {d \sec (e+f x)}} \, dx=\frac {i \, \sqrt {2} a \sqrt {d} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (f x + e\right ) + i \, \sin \left (f x + e\right )\right )\right ) - i \, \sqrt {2} a \sqrt {d} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (f x + e\right ) - i \, \sin \left (f x + e\right )\right )\right ) - 2 \, b \sqrt {\frac {d}{\cos \left (f x + e\right )}} \cos \left (f x + e\right )}{d f} \]
[In]
[Out]
\[ \int \frac {a+b \tan (e+f x)}{\sqrt {d \sec (e+f x)}} \, dx=\int \frac {a + b \tan {\left (e + f x \right )}}{\sqrt {d \sec {\left (e + f x \right )}}}\, dx \]
[In]
[Out]
\[ \int \frac {a+b \tan (e+f x)}{\sqrt {d \sec (e+f x)}} \, dx=\int { \frac {b \tan \left (f x + e\right ) + a}{\sqrt {d \sec \left (f x + e\right )}} \,d x } \]
[In]
[Out]
\[ \int \frac {a+b \tan (e+f x)}{\sqrt {d \sec (e+f x)}} \, dx=\int { \frac {b \tan \left (f x + e\right ) + a}{\sqrt {d \sec \left (f x + e\right )}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {a+b \tan (e+f x)}{\sqrt {d \sec (e+f x)}} \, dx=\int \frac {a+b\,\mathrm {tan}\left (e+f\,x\right )}{\sqrt {\frac {d}{\cos \left (e+f\,x\right )}}} \,d x \]
[In]
[Out]